<?php
echo "hello word!";

$tmp = '3656';
$a = hasRepeatChars($tmp, $freq);
var_dump($a);
function hasRepeatChars($str, $freq = []): bool{
	$len = strlen($str);
	$checker = 0;
	for ($i = 0; $i < $len; ++$i) {
		$bitAtIndex = ((int) $str[$i])-'0';
		// if that bit is already set
		// in checker, return true
		if (($checker & (1 << $bitAtIndex)) > 0) {
			return true;
		}

		// otherwise update and continue by
		// setting that bit in the checker
		$checker = $checker | (1 << $bitAtIndex);
	}
	// no duplicates encountered, return false
	return false;
}

//dd($tmp, $strValue, $str);
$tmp = "0";
$strValue = '02';
if (strcspn($tmp, $strValue) == strlen($tmp)) {
	$b = false;
}
var_dump($b);
?>
